package com.woniu.supermarket.service;

import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.Role;
import com.woniu.supermarket.vo.RolePerVo;
import com.woniu.supermarket.vo.RoleVo;

import java.util.List;

public interface IRoleService {
    List<Role> queryAllRoles();

    Role queryRoleByKey(Integer id);

    int modify(Role r);

    int add(Role role);

    int remove(Integer id);

    PageInfo<RoleVo> queryByPage(Integer now, Integer size, String roleName);

    List<Long> queryPerIdsByRoleKey(Long id);

    int rolePer(RolePerVo rolePerVo);
}
